package com.rpp.boot;

import com.rpp.client.RPCConsumer_1;
import com.rpp.service.IUserService;

public class ConsumerBoot_1 {


    public static void main(String[] args) throws InterruptedException {

        IUserService service = (IUserService) RPCConsumer_1.createProxy(IUserService.class);

        //2.循环给服务器写数据
        while (true) {
            String result = service.sayHello("hello rpp !!");
            Thread.sleep(2000);
        }

    }
}
